package com.yuxinmuyu.sports_management.bean.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author 张钦栩
 * @Email 1784746527@qq.com
 * @Create 2024-06-29
 * @Description
 */
@Data
public class ExportSportsProjectDTO {
    @ApiModelProperty("项目ID")
    @ColumnWidth(10)
    @ContentFontStyle(fontName = "宋体")
    @ExcelProperty("项目ID")
    private Integer sportsID;

    @ApiModelProperty("学期ID")
    @ColumnWidth(10)
    @ContentFontStyle(fontName = "宋体")
    @ExcelProperty("学期ID")
    private String yearTermID;


    @ApiModelProperty("运动名称")
    @ColumnWidth(20)
    @ContentFontStyle(fontName = "宋体")
    @ExcelProperty("运动名称")
    private String sportsName;

    @ColumnWidth(20)
    @ContentFontStyle(fontName = "宋体")
    @ExcelProperty("类型")
    @ApiModelProperty("类型")
    private String typeName;

    @ColumnWidth(20)
    @ContentFontStyle(fontName = "宋体")
    @ExcelProperty("运动详情")
    @ApiModelProperty("运动详情")
    private String sportsMemo;

    @ColumnWidth(20)
    @ContentFontStyle(fontName = "宋体")
    @ExcelProperty("修改时间")
    @ApiModelProperty("修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastDate;

    @ColumnWidth(10)
    @ContentFontStyle(fontName = "宋体")
    @ExcelProperty("操作人")
    @ApiModelProperty("操作人")
    private String operator;

    @ColumnWidth(10)
    @ContentFontStyle(fontName = "宋体")
    @ExcelProperty("文件名")
    @ApiModelProperty("文件名")
    private String fileName;

    @ColumnWidth(20)
    @ContentFontStyle(fontName = "宋体")
    @ExcelProperty("附件地址")
    @ApiModelProperty("附件地址")
    private String fileUrl;

}
